#include "myi2c.h"
#ifndef __ADS1115_IIC_H
#define __ADS1115_IIC_H


#define MPU9250_SENSOR_ADDR                 0x48        /*!< Slave address of the MPU9250 sensor */

int IIC_WriteReg(uint8_t i2c_addr, uint8_t reg_addr, uint8_t reg_dat);
int IIC_Write_addr(uint8_t i2c_addr, uint8_t reg_addr);
int IIC_WriteBuf(uint8_t i2c_addr, uint8_t reg_addr, uint8_t *Pdat, uint8_t len);
int IIC_ReadData(uint8_t i2c_addr, uint8_t reg_addr, uint8_t *pdat, uint8_t len);
int16_t ADS1115_ReadAdsReg(uint8_t i2cAddress, uint8_t reg);
void ADS1115_WriteAdsReg(uint8_t i2cAddress, uint8_t reg, uint16_t value);  
#endif
